package org.jeecg.modules.demo.mytest.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.mytest.entity.MtProjectDocument;

import java.util.List;

/**
 * @Description: 项目文档表
 * @Author: thankgod7
 * @Date: 2023-07-28
 * @Version: V1.0
 */
public interface MtProjectDocumentMapper extends BaseMapper<MtProjectDocument> {

    /**
     * 通过主表id删除子表数据
     *
     * @param mainId 主表id
     * @return boolean
     */
    boolean deleteByMainId(@Param("mainId") String mainId);

    /**
     * 通过主表id查询子表数据
     *
     * @param mainId 主表id
     * @return List<MtProjectDocument>
     */
    List<MtProjectDocument> selectByMainId(@Param("mainId") String mainId);

}
